$(function() {
	$("#submit").click(function() {
		var message = $("#text").val();
		var principal = $("#select").val();
		$.post("http://localhost:8081/study/websocket/publish", {
			message: message,
			principal: principal
		}, function(data) {
			if(data.success) {
				console.log(data.message);
			} else {
				console.log(data.message);
			}
		})
	})
})